<template>
	<view class="cu-load load-modal" v-if="loadModal">
	  <!-- <view class="cuIcon-emojifill text-orange"></view> -->
	  <image :src="imgUrl+loadImg" mode="aspectFit"></image>
	  <view class="gray-text">{{hint}}</view>
	</view>
</template>

<script>
	export default {
	    name:'loading',
		props: {
			loadModal: {
				type: [Boolean,Number],
				default: true
			},
			hint:{
				type: [String,Number],
				default: '加载中...'
			},
			loadImg:{
				type: [String],
				default: 'static/loading.gif'
			},
		},
		data() {
			return {
				 imgUrl:getApp().globalData.imgUrl,
			};
		},
		methods: {
			LoadModal(e) {
				this.loadModal = true;
				setTimeout(() => {
					this.loadModal = false;
				}, 2000);
			}
		}
	}
</script>

<style>
</style>
